<!DOCTYPE html>
<html>
<head>
  <title>RailsApp</title>
  <%= stylesheet_link_tag :all %>
  <%= javascript_include_tag :defaults %>
  <%= csrf_meta_tag %>
</head>
<body>

<% if user_signed_in? %>
  <%= link_to "sign out", destroy_user_session_path %>
<% else %>
  <%= link_to "sign in", new_user_session_path %>
<% end %>

<p />
  
<% flash.each do |name, message| %>
  <p id="<%= name %>" class="flash"><%= message %></p>
<% end %>

<%= yield %>

</body>
</html>
